package io.xxx.omni.oss.custom

import com.google.gson.JsonObject
import io.xxx.omni.oss.common.format
import io.xxx.omni.oss.domain.Document
import io.xxx.omni.oss.domain.DocumentType

@Suppress("unused")
class SnTradeSynchronizer : SnSynchronizer() {

    override val documentType = DocumentType.TRADE

    override val method = ""

    override fun buildDocuments(context: Context, response: JsonObject): List<Document> {
        TODO("Not yet implemented")
    }

    override fun buildRequest(context: Context, pageNo: Int): Map<String, Any> {
        val (startTime, endTime) = context
        return mapOf(
            "startTime" to startTime.format(),
            "endTime" to endTime.format(),
            "pageSize" to pageSize,
            "pageNo" to pageNo,
        )
    }
}